package com.cloudkinto.service.ecang.vo;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlRootElement(name = "ns1:callService")
@XmlAccessorType(XmlAccessType.FIELD)
public class EcangRequest {
    @XmlElement(name = "paramsJson")
    private String paramsJson;
    @XmlElement(name = "userName")
    private String userName;
    @XmlElement(name = "userPass")
    private String userPass;
    /**
     * apiType(1:仓库对接，2:物流对接)
     */
    @XmlElement(name = "apiType")
    private String apiType = "1";
    @XmlElement(name = "serviceTypeCode")
    private String serviceTypeCode;
    @XmlElement(name = "serviceToken")
    private String serviceToken;
    /**
     * 请求方法名称
     */
    private String service;

    public EcangRequest() {
    }

    public EcangRequest(String paramsJson, String userName, String userPass, String serviceTypeCode, String serviceToken, String service) {
        this.paramsJson = paramsJson;
        this.userName = userName;
        this.userPass = userPass;
        this.serviceTypeCode = serviceTypeCode;
        this.serviceToken = serviceToken;
        this.service = service;
    }
}
